import { ApiProperty } from "@nestjs/swagger";

export class AddAddressDto {
  @ApiProperty({ description: "是否默认地址" })
  readonly default: string;

  @ApiProperty({ description: "收货人姓名" })
  readonly name: string;

  @ApiProperty({ description: "收货人手机号" })
  readonly phone: string;

  @ApiProperty({ description: "省" })
  readonly province: string;

  @ApiProperty({ description: "市" })
  readonly city: string;

  @ApiProperty({ description: "区" })
  readonly country: string;

  @ApiProperty({ description: "详细地址" })
  readonly detailed: string;
}

export class EditAddressDto extends AddAddressDto {
  @ApiProperty({ description: "地址id" })
  readonly id: number;
}

export class DelAddressDto {
  @ApiProperty({ description: "地址id" })
  readonly id: number;
}
